<?php
namespace Admin\Controller;
use Think\Controller;
class StatementController extends CommonController {
	
	public function _initialize(){
	parent::_initialize();
	$this->model="statement".YEAR;
	$this->key="st_id";	
	$this->title_index= L('index');
	$this->title_details=L('details');
	}	
	
	//对账单列表
	public function index(){
		$mist_arr=array('st_reason'=>I('st_reason'));
		$accute_arr=array('st_name'=>I("st_name"),'st_mid'=>I("st_mid"));
		$cookie_arr=array();	
		$con=searchCon($mist_arr,$accute_arr,$cookie_arr);	
		
		cookie('order_status') && $cc_arr[]=array('订单状态','order_status',order_status(cookie('order_status')));
		cookie('order_mid') && $cc_arr[]=array('商户ID','order_mid',cookie('order_mid'));
		cookie('site_id') && $cc_arr[]=array('网站ID','site_id',cookie('site_id'));		
	    $this->assign("cookie_arr",$cc_arr);
		
		parent::index($con);
	}	
	
}